package com.airbat.prize.common.enums;

import com.airbat.prize.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * 涉黑恶日志类型
 */
@Getter
@AllArgsConstructor
public enum EvilLogEnum implements IntArrayValuable {

    //日志类型 1重点生成 2重点下发 3重点接收 4回访信息 5回访办结 6风险生成 7风险下发

    IMPORTANT_GENERATE(1, "重点生成"),
    IMPORTANT_ISSUED(2, "重点下发"),
    IMPORTANT_RECEIVE(3, "重点接收"),
    VISIT_INFO(4, "回访信息"),
    VISIT_CLOSE(5, "回访办结"),
    WARN_GENERATE(6, "风险生成"),
    WARN_ISSUED(7, "风险下发");

    /**
     * 值
     */
    private final Integer value;
    /**
     * 名称
     */
    private final String name;

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(EvilLogEnum::getValue).toArray();

    @Override
    public int[] array() {
        return ARRAYS;
    }

}
